
package com.app.bimo.module_bookrack.mvp.model.model;



import com.app.bimo.commonbusiness.BuildConfig;
import com.app.bimo.commonbusiness.bean.BaseResult;
import com.app.bimo.commonbusiness.network.RetrofitServiceManager;
import com.app.bimo.library_db.BookData;
import com.app.bimo.module_bookrack.mvp.constract.BookrackDelContract;
import com.app.bimo.module_bookrack.mvp.model.api.service.BookrackService;

import java.util.List;

import io.reactivex.Observable;


public class BookrackDelModel implements BookrackDelContract.Model {
    /**
     * 书架列表
     *
     * @return
     */
    @Override
    public Observable<BaseResult<List<BookData>>> getBooks(String page) {
        return RetrofitServiceManager.getInstance().createRetrofit(BuildConfig.APPLICATION_ID, BookrackService.class).getBooks(page);
    }

    @Override
    public Observable<BaseResult<Object>> delBook(String novelid) {
        return RetrofitServiceManager.getInstance().createRetrofit(BuildConfig.APPLICATION_ID, BookrackService.class).delBooks(novelid);

    }


    @Override
    public void onDestroy() {

    }


}
